.panel__rightbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
  width: 100%;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--primary-2);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  margin-top: 12px;
  max-width: 100%;
}

.back-btn:hover {
  filter: brightness(.99);
}

.back-btn:active {
  transform: translateY(1px);
}

.brand-menu {
  display: flex;
  gap: 10px;
  color: var(--primary-2);
  font-weight: 700;
  margin-left: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  overflow: visible;
}

.brand-menu img {
  display: block;
  width: auto;
  max-width: min(180px, 80vw);
  height: auto;
  max-height: 90px;
  object-fit: contain;
  flex-shrink: 1;
}

.panel-menu {
  margin-top: 24px;
  width: min(400px, 100%);
  max-width: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(215, 228, 234, .7);
  overflow: hidden;
}

.hint-card {
  display: flex;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.hint-card:visited {
  color: inherit;
}

.hint-card:hover {
  text-decoration: none;
}

.hint-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.panel__lefta {
  padding: 20px 26px;
  background: linear-gradient(180deg, rgba(199, 226, 237, .20), rgba(199, 226, 237, .06));
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .panel-menu {
    width: min(520px, 92vw);
    margin-top: 20px;
  }

  .brand-menu {
    justify-content: center;
  }

  .brand-menu img {
    max-width: min(170px, 72vw);
    max-height: 84px;
  }
}

@media (max-width: 768px) {
  .panel__rightbar {
    justify-content: center;
    margin-bottom: 12px;
  }

  .back-btn {
    margin-top: 8px;
    padding: 10px 14px;
  }

  .brand-menu {
    margin-left: 0;
    gap: 8px;
    font-size: 15px;
    flex-direction: column;
  }

  .brand-menu img {
    max-width: min(150px, 68vw);
    max-height: 72px;
  }

  .panel-menu {
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
    border-radius: 16px;
  }

  .panel__lefta {
    padding: 18px 16px;
  }
}

@media (max-width: 480px) {
  .panel-menu {
    width: 100%;
    margin-top: 12px;
    border-radius: 14px;
  }

  .panel__lefta {
    padding: 16px 12px;
  }

  .back-btn {
    width: 100%;
    justify-content: center;
  }

  .brand-menu {
    font-size: 14px;
    gap: 6px;
  }

  .brand-menu img {
    max-width: min(130px, 64vw);
    max-height: 64px;
  }
}